import os
import shutil
path=os.path.dirname(os.path.abspath(__file__))
sh108=os.path.join(path,'sh108')
sh122=os.path.join(path,'sh122')
sh108list=os.listdir(sh108)
sh122list=os.listdir(sh122)
for i in sh108list:
    if i in sh122list:
        print(i)
        shutil.rmtree(os.path.join(sh122,i))
        print('删除成功')
    else:
        print(i)
        print('sh122没有该文件')